<template>
  <web-view :src="url"></web-view>
</template>

<script setup>
import { ref, onMounted } from 'vue'

const url = ref('')

onMounted(() => {
  const pages = getCurrentPages()
  const page = pages[pages.length - 1]
  url.value = decodeURIComponent(page.options.url || '')
})
</script>